<template>
  <div id="addAdmin">addAdmin
    <div
      id="form-main"
      :style="{
        height: height / 2 + 'px',
      }"
    >
      <el-form
        :model="ruleForm"
        :rules="rules"
        ref="ruleForm"
        label-width="100px"
        class="demo-ruleForm"
      >
        <el-form-item label="登录名" prop="name">
          <el-input v-model="ruleForm.name"></el-input>
        </el-form-item>
        <el-form-item label="手机号" prop="phone">
          <el-input v-model="ruleForm.name"></el-input>
        </el-form-item>
        <el-form-item label="密码" prop="password">
          <el-input v-model="ruleForm.password"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="submitForm('ruleForm')">
            <i class="el-icon-success"></i>
            注册</el-button>

        </el-form-item>
      </el-form>
    </div>
  </div>

</template>

<script>
export default {
  name: "addAdmin",
};
</script>